<?php

class Redirect {
    public static function go($url) {
        if(Session::get("debug") == true) {
            die('Redireccionando a: <a href="'.$url.'">'.$url.'</a>');
        } else {
            header("Location: " . $url);
            die();
        }
    }
}